/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1interfacedemo;

/**
 *
 * @author apple
 */
public class Computer 
{
    private String color;

    public Computer() {
    }

    public Computer(String color) {
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    
    public void work()
    {
        System.out.println("计算机正在进行运算！");
    }
    
    public void workby(IUSB usb)
    {
        usb.install();
        usb.work();
    }
    
    public void turnOn(IPower power)
    {
        power.onPower();
    }
}
